#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QCloseEvent>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

private:
    QStringList m_listcomboName;
    QSerialPortInfo com_info;
    QSerialPort m_reader;
    int flag;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void closeEvent(QCloseEvent *event);

private slots:
    void on_Dim_Slider_valueChanged(int value);
    void on_Serial_Number_comboBox_activated(const QString &arg1);

    void on_Open_pushButton_clicked();

    void on_Close_pushButton_clicked();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
